#ifndef methoddescriptor_h__
#define methoddescriptor_h__

#include <google/protobuf/message.h>
#include <google/protobuf/service.h>


namespace myrpc
{
	class MethodDes
	{
	public:
		google::protobuf::
		MethodDes() = default;
		~MethodDes() = default;
		MethodDes(const google::protobuf::MethodDescriptor *descriptor,
				  const google::protobuf::Message  *request,
				  const google::protobuf::Message   *response)
				  : descriptor(descriptor), request(request), response(response) {}
	
		MethodDes(void) : descriptor(NULL), request(NULL), response(NULL) {}
	
	public:
		const google::protobuf::MethodDescriptor *descriptor;
		const google::protobuf::Message          *request;
		const google::protobuf::Message          *response;
	
	};
}
#endif // methoddescriptor_h__

